function result(status,data,msg){
    this.status = status;
    this.data = data || {};
    this.msg = msg;
}
function random(req,res){
    let randomNum = Math.ceil(Math.random()*6)
    console.log(`随机生成了：${randomNum}`)
    let data = {
        random:randomNum,
        boolean:randomNum>3?true:false
    }
    res.send(new result(200,data,'ok'))
}
module.exports = random